package com.wanmait.heating.pojo;

import com.fasterxml.jackson.annotation.JsonInclude;

import java.io.Serializable;
import java.util.Date;

@JsonInclude(JsonInclude.Include.NON_NULL)
public class Part implements Serializable {
    private Integer id;

    /**
	* 零件名称
	*/
    private String name;

    /**
	* 零件图片
	*/
    private String pic;

    /**
	* 单价
	*/
    private Integer price;

    /**
	* 工人id
	*/
    private Integer workerId;

    /**
	* 购买个数
	*/
    private Integer buyCount;

    /**
	* 使用个数<购买个数
	*/
    private Integer useCount;

    /**
	* 订单id
	*/
    private Integer billId;

    /**
	* 购买时间
	*/
    private Date time;

    /**
	* 目前状态（1：可用 0：不可用）
	*/
    private Boolean enable;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public Integer getWorkerId() {
        return workerId;
    }

    public void setWorkerId(Integer workerId) {
        this.workerId = workerId;
    }

    public Integer getBuyCount() {
        return buyCount;
    }

    public void setBuyCount(Integer buyCount) {
        this.buyCount = buyCount;
    }

    public Integer getUseCount() {
        return useCount;
    }

    public void setUseCount(Integer useCount) {
        this.useCount = useCount;
    }

    public Integer getBillId() {
        return billId;
    }

    public void setBillId(Integer billId) {
        this.billId = billId;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public Boolean getEnable() {
        return enable;
    }

    public void setEnable(Boolean enable) {
        this.enable = enable;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", pic=").append(pic);
        sb.append(", price=").append(price);
        sb.append(", workerId=").append(workerId);
        sb.append(", buyCount=").append(buyCount);
        sb.append(", useCount=").append(useCount);
        sb.append(", billId=").append(billId);
        sb.append(", time=").append(time);
        sb.append(", enable=").append(enable);
        sb.append("]");
        return sb.toString();
    }
}